#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    int a, b, c;
    int maxn, midn, minn;
    cin >> a >> b >> c;
    maxn = max(a, max(b, c));
    minn = min(a, min(b, c));
    midn = a + b + c - maxn - minn;
    cout << minn << ' ' << midn << ' ' << maxn << endl;
    return 0;
}